<!--Copyright (C) Kherty.  All rights reserved.-->
<UserControl
    x:Class="OpenLS.Spreadsheet.UI.ZoomControl"
    xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Internals1="clr-namespace:OpenLS.UI.Internals;assembly=OpenLS.UI"
    xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources">
    <Border BorderBrush="Black" BorderThickness="1" Background="Beige" CornerRadius="18"  Padding="10">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <GroupBox Header ="{x:Static Resources:UIStringTable.Magnification}" Margin="0 3 0 -3" PreviewMouseDoubleClick="OnDoubleClick">
      <Grid>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition />
          <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
          <RowDefinition/>
          <RowDefinition/>
          <RowDefinition/>
          <RowDefinition/>
          <RowDefinition/>
          <RowDefinition/>
          <RowDefinition/>
        </Grid.RowDefinitions>
        <RadioButton Grid.Row="0" Grid.ColumnSpan="3" Name="percent200" Content="{x:Static Resources:UIStringTable.Percent200}"></RadioButton>
        <RadioButton Grid.Row="1" Grid.ColumnSpan="3" Name="percent100"  Content="{x:Static Resources:UIStringTable.Percent100}" IsChecked ="True"></RadioButton>
        <RadioButton Grid.Row="2" Grid.ColumnSpan="3" Name="percent75" Content="{x:Static Resources:UIStringTable.Percent75}"></RadioButton>
        <RadioButton Grid.Row="3" Grid.ColumnSpan="3" Name="percent50" Content="{x:Static Resources:UIStringTable.Percent50}"></RadioButton>
        <RadioButton Grid.Row="4" Grid.ColumnSpan="3" Name="percent25" Content="{x:Static Resources:UIStringTable.Percent25}"></RadioButton>
        <RadioButton Grid.Row="5" Grid.ColumnSpan="3" Name="fitToSelection" Content="{x:Static Resources:UIStringTable.FitSelection}"></RadioButton>
        <RadioButton Grid.Row="6" Name="custom" Content="{x:Static Resources:UIStringTable.Custom}"></RadioButton>
        <TextBox Grid.Row="6" Grid.Column="1" Name="customTextBox" TextChanged="customTextBox_TextChanged">100</TextBox>
        <TextBlock Grid.Column ="2" Grid.Row="6">%</TextBlock>
      </Grid>
    </GroupBox>
    <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
      <Button IsDefault="True" Content="{x:Static Internals1:UIStringTable.OK}"></Button>
      <Button IsCancel="True" Content="{x:Static Internals1:UIStringTable.Cancel}"></Button>
    </StackPanel>
  </Grid>
    </Border>
</UserControl>
